<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="dist/swiper.css" />
    <script src="swiper.js"></script>
  </head>
  <body>
    <main class="swiper"></main>
    <script>
      new Swiper({
        el: '.swiper',
        width: 800,
        height: 300,
        //旋转速度单位毫秒
        timeout: 30,
        //图片切成多少块
        limit: 30,
        images: ['images/1.jpg', 'images/2.jpg', 'images/3.jpg', 'images/4.jpg'],
      }).run()
    </script>
  </body>
</html>
